export const LoginApis = {
  // 手机号验证码登录接口 {username}手机号 {password}验证码
  loginByMobile: 'post auth/action/oauth/token',
};

export const LvtongApis = {
  // 就诊人接口-查询显示默认就诊人
  getDefaultPatient: 'get patient/default/one',
  // 就诊人接口-查询就诊人列表
  getPatientList: 'get patient/list',
  // 就诊人接口-新增就诊人
  addPatient: 'post patient/add',
  // 就诊人接口-选择就诊人
  chosePatient: (patientId) => `post patient/choice?patientId=${patientId}`,
  // 就诊人接口-根据ID显示就诊人信息
  getPatientOne: (patientId) => `get patient/one?patientId=${patientId}`,
  // 就诊人接口-修改就诊人
  modifyPatient: 'post patient/modify',
  // 就诊人接口-删除就诊人
  delPatient: (patientId) => `delete patient/delPatient?patientId=${patientId}`,

  // 区域接口-查询区域信息
  getAreaList: (areaId) => `get area/list?areaId=${areaId}`,

  // 医院接口-查询医院列表
  getHospitalList: (params) =>
    `get hospital/list?cityId=${params.cityId}&districtId=${params.districtId}&provinceId=${params.provinceId}`,

  // 获取科室接口
  getDepartMentEnum: 'get department/getDepartMentEnum',
  // 文件接口-图片上传
  uploadImg: `post file/upload/img`,

  // 申请单接口-申请单列表
  getSubscribeList: (status) => `get subscribe/list?status=${status}`,
  // 申请单接口-申请单详情
  getSubscribeDetail: (subscribeId) => `get subscribe/detail?subscribeId=${subscribeId}`,
  // 申请单接口-提交申请单
  submitSubscribe: 'post subscribe/submit',
  // 申请单接口-取消申请单
  cancelSubscribe: (subscribeId) => `post subscribe/cancel?subscribeId=${subscribeId}`,
  getEquityCard: (subscribeType) => `get subscribe/getEquityCard?type=${subscribeType}`,
};
